package com.feicheng.controller.admin;

import com.feicheng.common.result.ResultInfo;
import com.feicheng.service.a.FMjService;
import com.feicheng.service.impl.FMjConnectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/mj")
public class MjController {

    @Autowired
    FMjService mjService;

    @Autowired
    FMjConnectionService connectionService;

    @GetMapping("/init")
    public ResultInfo initMj(String sn) {
        connectionService.cmdDeleteAllPerson(sn);
        return ResultInfo.success();
    }
}
